home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Softshoe / Lisa's Mac Parts / Application / Application.cp next >
Text File  |  2000-06-23  |  947b  |  40 lines

  1. // Application.cp
  2.  
  3. #ifndef Application_h
  4. #include "Application.h"
  5. #endif
  6. #ifndef Process_h
  7. #include "Process.h"
  8. #endif
  9. #ifndef CursorController_h
  10. #include "CursorController.h"
  11. #endif
  12. #ifndef DialogManagerUser_h
  13. #include "DialogManagerUser.h"
  14. #endif
  15. #ifndef ProcessInfo_h
  16. #include "ProcessInfo.h"
  17. #endif
  18. #ifndef ApplicationFocus_h
  19. #include "ApplicationFocus.h"
  20. #endif
  21. #ifndef Quitter_h
  22. #include "Quitter.h"
  23. #endif
  24.  
  25. Application::Application( uint32 masterPointers,
  26.                                   uint32 extraStackSpace )
  27.   : ApplicationBase( masterPointers, extraStackSpace ),
  28.      creatingLink( ApplicationFocus::The(), *this ),
  29.      openingLink(  ApplicationFocus::The(), *this ),
  30.      quittingLink( ApplicationFocus::The(), Quitter::The() )
  31.   {
  32.     Assert( !ProcessInfo::Application().OnlyBackground() );
  33.  
  34.     Assert( ProcessInfo::Application().NeedsSuspendResume() );
  35.     Assert( ProcessInfo::Application().ActivatesOnResume() );
  36.     
  37.     DialogManagerUser();
  38.     CursorController::The();
  39.   }
  40.